#define _CRT_SECURE_NO_WARNINGS 1
# include <stdio.h>

int main() {
	int max, i = 0 , a[10];
	for (i; i < 10; i++)
	{
		scanf("%d", &a[i]);
	}
	max = a[0];
	for (i = 0; i < 10; i++)
	{
		max = a[i++] > max ? a[i++] : max;
	}
	printf("%d\n", max);
	return 0;
}